package com.ruoyi.yljf.controller.AppController;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.security.annotation.Anonymous;
import com.ruoyi.yljf.domain.Doctor;
import com.ruoyi.yljf.domain.dto.DoctorDTO;
import com.ruoyi.yljf.service.IDoctorService;
import com.ruoyi.yljf.service.IDrugCategoryService;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * 药材类别Controller
 * 
 * @author metaee
 * @date 2025-02-14
 */
@Anonymous
@RestController
@RequestMapping("api/drugCategory")
public class ApiDrugCategoryController extends BaseController {

    @Resource
    private IDrugCategoryService drugCategoryService;

    /**
     * 药材类别表
     */
    @GetMapping("/list")
    public AjaxResult getDrugCategory() {
        List list = drugCategoryService.getDrugCategory();
        return success(list);
    }

}
